package com.sca.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sca.order.entity.Seckill;

/**
 * @author liuxianfei
 * @since 2020/11/3 11:48
 */
public interface SeckillService extends IService<Seckill> {

    /**
     * 秒杀
     *
     * @param userId 用户id
     * @param goodId 商品id
     */
    Boolean seckill(Integer userId, Long goodId);

    Boolean seckillForRedis(Integer userId, Long goodId);

}
